﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevelopmentPFR.Utilitaire;

namespace DevelopmentPFR.Plateforme_Stockage
{
    public partial class BonsPreparations : System.Web.UI.Page
    {
        private String reference;
        protected void Page_Load(object sender, EventArgs e)
        {
            reference = Request.Params["ref"];
            Hashtable parametre = new Hashtable();
            parametre.Add("@referenceCommande", reference);
            listeProduits.DataSource = BaseDeDonnees.ExecuteSelectStoredProcedure("spPs_detailCommandeHypermarche",
                parametre);
        }

        protected void listeProduits_OnRowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                ((TextBox)e.Row.FindControl("quantiteCommande")).Attributes.Add("onblur", "javascript:calculTotalprice()");
            }
        }
    }
}